home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
inn1.000
/
inn1.4sec-linux-src.tar
/
inn
/
samples
/
version
< prev
next >
Wrap
Text File
|
1993-12-22
|
960b
|
36 lines
#! /bin/sh
## $Revision: 1.23 $
## Version control-message handler
PROG=version
## Some shells don't pass in $* unless we explicitly pass it in here.
## =()<. @<_PATH_PARSECTL>@ "$@">()=
. /news/bin/control/parsecontrol "$@"
VERSION="INN 1.4-sec"
WHERE=`innconfval pathhost`
SUBJECT="Version reply from `innconfval pathhost`"
case ${ACTION} in
mail)
export FROM VERSION MAILCMD SUBJECT ARTICLE
(
echo "${FROM} requested your news version."
echo 'To reply, do the following:'
echo " echo InterNetNews ${VERSION} | ${MAILCMD} -s \"${SUBJECT}\" ${FROM}"
echo 'The full article was:'
cat ${ARTICLE}
) | sed -e 's/^~/~~/' | ${MAILCMD} -s "version by ${FROM}" ${NEWSMASTER}
;;
logit)
${WRITELOG} ${LOGFILE} "version by ${FROM}; reply skipped" <${ARTICLE}
;;
doit)
echo "InterNetNews ${VERSION}" | ${MAILCMD} -s "${SUBJECT}" ${REPLYTO}
${WRITELOG} ${LOGFILE} "version by ${FROM}; reply sent" <${ARTICLE}
;;
esac
exit